﻿using Newtonsoft.Json;
using System.Xml.Serialization;

namespace FuiouPay.Models.Response {
    [XmlRoot("xml")]
    public class FuiouResponseInfo {
        /// <summary>
        /// 机构号,接入机构在富友的唯一代码
        /// </summary>
        [XmlElement("ins_cd")]
        [JsonIgnore]
        public string InsCd { get; set; }

        /// <summary>
        /// 商户号,富友分配给二级商户的商户号
        /// </summary>
        [XmlElement("mchnt_cd")]
        [JsonIgnore]
        public string MchntCd { get; set; }

        /// <summary>
        /// 错误代码,000000成功,其他详细参见错误列表
        /// </summary>
        [XmlElement("result_code")]
        public string ResultCode { get; set; }

        /// <summary>
        /// 错误代码描述
        /// </summary>
        [XmlElement("result_msg")]
        public string ResultMsg { get; set; }

        /// <summary>
        /// 签名
        /// </summary>
        [XmlElement("sign")]
        [JsonIgnore]
        public string Sign { get; set; }

        /// <summary>
        /// 终端号(没有真实终端号统一填88888888)
        /// </summary>
        [XmlElement("term_id")]
        public string TermId { get; set; }

        /// <summary>
        /// 渠道订单号
        /// </summary>
        [XmlElement("transaction_id")]
        [JsonIgnore]
        public string TransactionId { get; set; }

        [XmlElement("order_type")]
        public string OrderType { get; set; }

        /// <summary>
        /// 随机字符串
        /// </summary>
        [XmlElement("random_str")]
        [JsonIgnore]
        public string RandomStr { get; set; }
    }
}
